# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=harec
pkgver="0_git20220611"
_commit=cdb79d0f7c775805b97d2a91d387a74dfc71a9d2
pkgrel=0
pkgdesc="The Hare compiler"
url="https://harelang.org"
arch="x86_64 aarch64 riscv64"
license="GPL-3.0-only"
depends="qbe"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/harec/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
5a1d4007e782b4c3ca2d6a1932d6cbf9ff0ff955ce43458c40201276b1244684d3b692241ed0727ce52f28594db761d5e89e13f6441d5af6b2d14dfaf8d42bf5  harec-cdb79d0f7c775805b97d2a91d387a74dfc71a9d2.tar.gz
"
